package com.tianqu.tis.core.webservice;

import javax.jws.WebService;

@WebService(endpointInterface="com.tianqu.tis.core.webservice.CarsInformationService",serviceName="CarsInformationService")
public class CarsInformationServiceImp implements CarsInformationService {
  
	public CarsInformationServiceImp(){
		
	}
	
	/**
	 * 车辆信息
	 */
	@Override
	public byte[] DownloadCarsInfos() {
	return XmlResolveController.carInfo();
	}
	
	/**
	 * 用户信息
	 * @return
	 */
	@Override
	public byte[] DownloadUsers() {
		 return XmlResolveController.user();
	}
	
	/**
     * 检测信息上传
     * @param CarId
     * @param Type
     * @param Normal
     * @return
	 * @throws IOException 
     */
	@Override
	public boolean UploadCarDetects(String CarId, int Type, byte[] Normal) {
		return XmlResolveController.CarDetects(CarId,Type,Normal);
	}
	
	 /**
     * 图片信息上传
     * @param CarId
     * @param Type
     * @param ImageKey
     * @param Image
     * @return
     */
	@Override
	public boolean UploadCarImages(String CarId, int Type, int ImageKey,
			byte[] Image) {
		return XmlResolveController.CarImages(CarId,Type,ImageKey,Image);
		
	}
    
}
